package cn.iocoder.yudao.adminserver.franky.LRU;

import java.util.concurrent.atomic.AtomicLong;

/**
 * @Description:
 * @Author: franky
 * @CreateDate: 2021/4/16 2:23 下午
 * @Version: 1.0
 */
public class SingletonFour {
    private AtomicLong i = new AtomicLong(0);

    private static class SingletonInstance {
        private static final SingletonFour instance = new SingletonFour();
    }

    public static SingletonFour getInstance() {
        return SingletonInstance.instance;
    }

    public long getId() {
        return i.incrementAndGet();
    }
}
